Skip to content

chore: add showcase integration tests for OpenTelemetry span scope in logging and metrics - #15041

Draft
jinseopkim0 wants to merge 1 commit into
base-showcase-span-scopefrom
chore-showcase-span-scope-it
Draft

jinseopkim0 wants to merge 1 commit into
base-showcase-span-scopefrom
chore-showcase-span-scope-it

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

Adds Showcase integration tests verifying that diagnostic error logs (L4/L3), golden signal metric exemplars (M1), and downstream gRPC client interceptors observe the active OpenTelemetry span across HTTP/JSON and gRPC calls, including nested CompositeTracerFactory configurations.

(Stacked on #15033 and #15034; base branch will be retargeted to main once those merge.)

b/499388983
b/570676007

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces integration tests to verify that OpenTelemetry span contexts are correctly captured and correlated during error logging for both HTTP/JSON and gRPC transports. Specifically, it adds testHttpJson_spanContextCapturedInScopeDuringErrorLog and testGrpc_spanContextCapturedInScopeDuringErrorLogAndDownstreamInterceptor to ITActionableErrorsLogging.java, along with helper methods to build a nested composite tracer factory and assert span correlation. Additionally, TestAppender.java is updated to capture and store the active OpenTelemetry SpanContext when log events are appended. I have no feedback to provide as the changes are well-implemented and there are no existing review comments to address.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant